import random
lucknum=random.randint(1,100)
guess=int(input("输入数字"))


while True:
    if guess==lucknum:
        print("恭喜你")
        break
    elif guess<lucknum:
        print("猜小了")
    elif guess>lucknum:
        print("猜大了")
    guess=int(input("再输入一个数字"))